/*

import java.util.Hashtable;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
import org.kxml2.io.KXmlSerializer;

public abstract class FileObject implements KvmSerializable{

	public int fileID;
	public int userID;
	public String fileName;
	public int fileType;
	public int fileSize;
	public String pathFile;
	public int statusFile;
	public String dayBackupFile;
	public String dayDeleteFile;
	public String note;
	
	public FileObject(){
		
	}
	
	public FileObject(String fileName,int fileSize, String pathFile, String note){		
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.pathFile = pathFile;
		this.note = note;
	}	
	
	public FileObject(int fileID, int userID, String fileName, int fileType, int fileSize, String pathFile,int status, String dayBackup, String dayDel, String note){
		this.fileID = fileID;
		this.userID = userID;
		this.fileName = fileName;
		this.fileType = fileType;
		this.fileSize = fileSize;
		this.pathFile = pathFile;
		this.statusFile = status;
		this.dayBackupFile = dayBackup;
		this.dayDeleteFile = dayDel;
		this.note = note;
	}
	
	public int getFileID(){return fileID;}
	public void setFileID(int fileID){
		this.fileID = fileID;
	}
	
	public int getUserID(){return userID;}
	public void setUserID(int userID){
		this.userID = userID;
	}		
	
	public String getFileName(){return fileName;}
	public void setFileName(String fileName){
		this.fileName = fileName;
	}		
	
	public int getFileType(){return fileType;}
	public void setFileType(int fileType){
		this.fileType = fileType;
	}		
	
	public int getFileSize(){return fileSize;}
	public void setFileSize(int fileSize){
		this.fileSize = fileSize;
	}		
	
	public String getPathFile(){return pathFile;}
	public void setPathFile(String pathFile){
		this.pathFile = pathFile;
	}		
	
	public int getStatusFile(){return statusFile;}
	public void setStatusFile(int statusFile){
		this.statusFile = statusFile;
	}		
	
	public String getDayBackup(){return dayBackupFile;}
	public void setDayBackup(String dayBackup){
		this.dayBackupFile = dayBackup;
	}		
	
	public String getDayDelete(){return dayDeleteFile;}
	public void setDayDelete(String dayDelete){
		this.dayDeleteFile = dayDelete;
	}		
	
	public String getNote(){return note;}
	public void setNote(String note){
		this.note = note;
	}	
	
	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 10;
	}

	@Override
	public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
		// TODO Auto-generated method stub
        switch(arg0){
	        case 0:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileID";
	            break;
	        case 1:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "userID";
	            break;
	        case 2:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "fileName";
	            break;
	        case 3:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileType";
	        	break;
	        case 4:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileSize";
	        	break;
	        case 5:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "pathFile";
	        	break;
	        case 6:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "statusFile";
	        	break;
	        case 7:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "dayBackupFile";
	        	break;
	        case 8:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "dayDeleteFile";
	        	break;    
	        case 9:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "note";
	        	break; 	        	
	        default:break;
        }
	}
    public Object getProperty(int arg0) {
        
        switch(arg0){
        case 0:
            return fileID;
        case 1:
            return userID;
        case 2:
            return fileName;
        case 3:
            return fileType;
        case 4:
            return fileSize;
        case 5:
            return pathFile;
        case 6:
            return statusFile;
        case 7:
            return dayBackupFile;
        case 8:
            return dayDeleteFile;     
        case 9:
            return note;           
        }
        
        return null;
    }
	@Override
	public void setProperty(int arg0, Object arg1) {
		// TODO Auto-generated method stub
        switch(arg0){
	        case 0:
	        	fileID = Integer.parseInt(arg1.toString());
	            break;
	        case 1:
	        	userID  = Integer.parseInt(arg1.toString());
	            break;
	        case 2:
	        	fileName = arg1.toString();
	            break;
	        case 3:
	        	fileType = Integer.parseInt(arg1.toString());
	        	break;
	        case 4:
	        	fileSize = Integer.parseInt(arg1.toString());
	        	break;
	        case 5:
	        	pathFile = arg1.toString();
	        	break;    
	        case 6:
	        	statusFile = Integer.parseInt(arg1.toString());
	        	break;
	        case 7:
	        	dayBackupFile = arg1.toString();
	        	break;
	      	case 8:
	      		dayDeleteFile = arg1.toString();
	      		break;
	      	case 9:
	      		note = arg1.toString();
	      		break;          
	        default:
	            break;
        }
	}
	
}
*/

import java.util.Hashtable;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
import org.kxml2.io.KXmlSerializer;

public class FileObject implements KvmSerializable{

	public int fileID;
	public int userID;
	public String fileName;
	public int fileType;
	public int fileSize;
	public String pathFile;
	public int statusFile;
	public String dayBackupFile;
	public String dayDeleteFile;
	public String note;
	
	public FileObject(){
		
	}
	
	public FileObject(String fileName,int fileSize, String pathFile, String note){		
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.pathFile = pathFile;
		this.note = note;
	}	
	
	public FileObject(int fileID, int userID, String fileName, int fileType, int fileSize, String pathFile,int status, String dayBackup, String dayDel, String note){
		this.fileID = fileID;
		this.userID = userID;
		this.fileName = fileName;
		this.fileType = fileType;
		this.fileSize = fileSize;
		this.pathFile = pathFile;
		this.statusFile = status;
		this.dayBackupFile = dayBackup;
		this.dayDeleteFile = dayDel;
		this.note = note;
	}
	
	public int getFileID(){return fileID;}
	public void setFileID(int fileID){
		this.fileID = fileID;
	}
	
	public int getUserID(){return userID;}
	public void setUserID(int userID){
		this.userID = userID;
	}		
	
	public String getFileName(){return fileName;}
	public void setFileName(String fileName){
		this.fileName = fileName;
	}		
	
	public int getFileType(){return fileType;}
	public void setFileType(int fileType){
		this.fileType = fileType;
	}		
	
	public int getFileSize(){return fileSize;}
	public void setFileSize(int fileSize){
		this.fileSize = fileSize;
	}		
	
	public String getPathFile(){return pathFile;}
	public void setPathFile(String pathFile){
		this.pathFile = pathFile;
	}		
	
	public int getStatusFile(){return statusFile;}
	public void setStatusFile(int statusFile){
		this.statusFile = statusFile;
	}		
	
	public String getDayBackup(){return dayBackupFile;}
	public void setDayBackup(String dayBackup){
		this.dayBackupFile = dayBackup;
	}		
	
	public String getDayDelete(){return dayDeleteFile;}
	public void setDayDelete(String dayDelete){
		this.dayDeleteFile = dayDelete;
	}		
	
	public String getNote(){return note;}
	public void setNote(String note){
		this.note = note;
	}	
	
	
	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 10;
	}

	@Override
	public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {
		// TODO Auto-generated method stub
        switch(arg0){
	        case 0:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileID";
	            break;
	        case 1:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "userID";
	            break;
	        case 2:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "fileName";
	            break;
	        case 3:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileType";
	        	break;
	        case 4:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "fileSize";
	        	break;
	        case 5:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "pathFile";
	        	break;
	        case 6:
	        	arg2.type = PropertyInfo.INTEGER_CLASS;
	        	arg2.name = "statusFile";
	        	break;
	        case 7:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "dayBackupFile";
	        	break;
	        case 8:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "dayDeleteFile";
	        	break;    
	        case 9:
	        	arg2.type = PropertyInfo.STRING_CLASS;
	        	arg2.name = "note";
	        	break; 	        	
	        default:break;
        }
	}
    public Object getProperty(int arg0) {
        
        switch(arg0){
        case 0:
            return fileID;
        case 1:
            return userID;
        case 2:
            return fileName;
        case 3:
            return fileType;
        case 4:
            return fileSize;
        case 5:
            return pathFile;
        case 6:
            return statusFile;
        case 7:
            return dayBackupFile;
        case 8:
            return dayDeleteFile;     
        case 9:
            return note;           
        }
        
        return null;
    }
	@Override
	public void setProperty(int arg0, Object arg1) {
		// TODO Auto-generated method stub
        switch(arg0){
	        case 0:
	        	fileID = Integer.parseInt(arg1.toString());
	            break;
	        case 1:
	        	userID  = Integer.parseInt(arg1.toString());
	            break;
	        case 2:
	        	fileName = arg1.toString();
	            break;
	        case 3:
	        	fileType = Integer.parseInt(arg1.toString());
	        	break;
	        case 4:
	        	fileSize = Integer.parseInt(arg1.toString());
	        	break;
	        case 5:
	        	pathFile = arg1.toString();
	        	break;    
	        case 6:
	        	statusFile = Integer.parseInt(arg1.toString());
	        	break;
	        case 7:
	        	dayBackupFile = arg1.toString();
	        	break;
	      	case 8:
	      		dayDeleteFile = arg1.toString();
	      		break;
	      	case 9:
	      		note = arg1.toString();
	      		break;          
	        default:
	            break;
        }
	}
	
	
}
